<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
    <base href="<%=basePath%>"/>
    <title>查看所有学校信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="static/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="static/layuiadmin/style/admin.css" media="all">
    <link rel="stylesheet" href="static/layuiadmin/style/template.css" media="all">

</head>
<body>

<div class="layui-fluid" >
    <form class="layui-form">
    <div class="layui-card-body">
        <div style="padding-bottom: 10px;">
            <button class="layui-btn layuiadmin-btn-schoolAdd"  data-type="batchdel">删除</button>
            <button id="lay-btn-AddSchool"  lay-submit class="layui-btn " lay-filter="lay-btn-AddSchool"  data-type="add">添加</button>
        </div>
    </div>
    </form>
</div>

    <div class="layui-fluid layadmin-maillist-fluid">
    <div class="layui-row layui-col-space15" id="school-list">
        <%--内容展示区--%>
    </div>
</div>

    <%--添加窗口--%>
    <div id="layui-app-school-list"
         style="display:none;padding: 20px 30px 0 0;">
            <div class="layui-form">
                     <div class="layui-form-item">
            <label class="layui-form-label">负责人工号</label>
            <div class="layui-input-inline">
                <input id="schStaffId" type="text" name="schoolStaffId"  lay-verify="required" autocomplete="off"
                       class="layui-input">
            </div>

        </div>
            <div class="layui-form-item">
            <label class="layui-form-label">学校地址</label>
            <div class="layui-input-block">
                <input type="text" id="schAddr"  name="schoolAddr" lay-verify="required" autocomplete="off"
                       class="layui-input">
            </div>
            </div>
            </div>
    </div>
    <%--修改窗口--%>
<div class="layui-form" lay-filter="update-school" id="update-school"
     style="display:none;padding: 20px 30px 0 0;">

    <div class="layui-form-item">
        <label class="layui-form-label">分校号</label>
        <div class="layui-input-inline">
            <input id="schoolId" type="text" name="schoolId" disabled="disabled" lay-verify="required" autocomplete="off"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">管理员工号</label>
        <div class="layui-input-inline">
            <input type="text" id="schoolStaffId"  name="schoolStaffId" lay-verify="required|number" autocomplete="off"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">地址</label>
        <div class="layui-input-block">
            <input type="text"  id="schoolAddr" name="schoolAddr" lay-verify="required"  autocomplete="off" class="layui-input">
        </div>
    </div>

  <%--  <div class="layui-form-item">
        <label class="layui-form-label">运营状态</label>
        <div class="layui-input-inline">
    <textarea id="schoolStatus" name="schoolStatus"  style="width: 150px; height: 20px;"
              autocomplete="off" class="layui-textarea"></textarea>
        </div>
    </div>--%>

    <div class="layui-form-item">
        <label class="layui-form-label">运营状态</label>
        <div class="layui-input-inline">
            <select id="schoolStatus" name="schoolStatus" required="required|number">
                <option value="1">运行</option>
                <option value="0">停运</option>
            </select>
            <%--<input id="schoolStatus" type="checkbox" lay-verify="required" lay-filter="status" name="schoolStatus"
             checked="checked"   lay-skin="switch" lay-text="运行|停运">--%>
        </div>
    </div>
</div>

    <script src="static/user/js/jquery.min.js" charset="UTF-8"></script>
    <script src="static/layuiadmin/layui/layui.js" charset="UTF-8"></script>
    <script src="static/user/school.js" charset="UTF-8"></script>

    </body>



</html>
